home *** CD-ROM | disk | FTP | other *** search
- Path: host1.einstein.com.ar!news
- From: jkohen@einstein.com.ar (Javier Kohen)
- Newsgroups: comp.lang.c++
- Subject: Re: Passing multidemensional arrays to functions?
- Date: Sun, 31 Mar 1996 23:00:25 GMT
- Organization: Red Einstein
- Message-ID: <4jn84m$td5@host1.einstein.com.ar>
- References: <4islec$m41@matrix.mdn.com>
- Reply-To: jkohen@einstein.com.ar
- NNTP-Posting-Host: ppp-04.einstein.com.ar
- X-Newsreader: Forte Free Agent 1.0.82
-
- John Schell <jschell@aggie.mdn.com> wrote:
-
- >I am trying to pass a variable to a function but continue to get errors
- >no matter
- >what declaration I give the variable in the prototype statement.
-
- >The variable:
- > float variable[1][2]
-
- >Can you make a sugestion as to what it should pass as?
-
- >Thanks
- >John
-
- void ffunc(float f[1][2])
- {
- }
-
- void main()
- {
- float farray[1][2];
-
- ffunc(farray);
- }
-
-
-